<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddCoverUrlToGoodsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('goods', function(Blueprint $table)
		{
			//
            $table->string('cover_url',200)->default('')->comment('封面链接');
            $table->text('picture_urls')->default('')->comment('图片');
            $table->string('index_cover_url',200)->default('')->comment('首页推荐封面图');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::table('goods', function(Blueprint $table)
		{
			//
            $table->dropColumn('cover_url');
            $table->dropColumn('picture_urls');
            $table->dropColumn('index_cover_url');
		});
	}

}
